package com.test.demo.springhello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @@EnableAutoConfiguration:排除DataSourceConfiguratrion
 * @EnableTransactionManagement:开启事物管理功能
 * @author Administrator
 *
 */
@SpringBootApplication
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@EnableTransactionManagement(proxyTargetClass = true)
public class SpringShardingApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(SpringShardingApplication.class, args);
	}
	
}
